home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2000 September / maximum-cd-2000-09.iso / Vampire the Masquerade / vampire_demo.exe / Codex.nob / EffectDiscTheForgetfulMind.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-22  |  1.6 KB  |  36 lines

  1. public class EffectDiscTheForgetfulMind extends Codex {
  2.    private int padGuid;
  3.  
  4.    public void EndEffect(int targetGuid) {
  5.       CodexThing pad = new CodexThing(this.padGuid);
  6.       pad.Remove();
  7.    }
  8.  
  9.    public void restore(int flags) {
  10.       this.padGuid = CodexSequence.RestoreInt();
  11.    }
  12.  
  13.    public void effectstarted(int actorGuid, int effectGuid, int creatorGuid, int duration) {
  14.       new CodexActor(creatorGuid);
  15.       CodexActor _Target = new CodexActor(actorGuid);
  16.       ((CodexThing)_Target).SpawnThing("yellowMagic");
  17.       this.padGuid = ((CodexThing)_Target).SpawnThing("ankhsPadYellow");
  18.       float[] offset = new float[3];
  19.       offset[0] = offset[1] = offset[2] = 0.0F;
  20.       ((CodexThing)_Target).AttachThing(this.padGuid, -1, offset, 1);
  21.       ((Codex)this).CaptureThing(actorGuid);
  22.    }
  23.  
  24.    public void killed(int guid, int causeID, int captureID) {
  25.       this.EndEffect(guid);
  26.    }
  27.  
  28.    public void save(int flags) {
  29.       CodexSequence.SaveInt(this.padGuid);
  30.    }
  31.  
  32.    public void effectended(int actorGuid, int effectGuid, int creatorGuid, int reason) {
  33.       this.EndEffect(actorGuid);
  34.    }
  35. }
  36.